package OOP.day09;

import OOP.day09.CompanyDemo.Major;

public class RefArrayDemo {
    public static void main(String[] args) {
        Major[] majors = new Major[10];
        //赋值
        majors[0] = new Major("张三", 20, 10000);
        majors[0].solveProblem();
        majors[0].editCompile();
        majors[0].trainStaff();
        majors[0].workOn();
        majors[0].workOff();
        majors[0].workDown();
        System.out.println(majors[0].name);
        System.out.println(majors[0].age);
        System.out.println(majors[0].salary);

    }

}
